# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  
  def title(page_title)
    content_for(:title) { page_title }
  end
  
  def subtitle(page_subtitle)
    content_for(:subtitle) { page_subtitle }
  end
  
  def pluralize(count, word)
    case count
      when 0 then "#{word[:other]}"
      when 1 then "#{word[:one]}"
      else "#{word[:other]}"
    end
  end
end
